package com.tc.dao;
import com.tc.pojo.Trucks;
import org.apache.ibatis.annotations.Select;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

/****
 * @Author:admin
 * @Description:Trucks的Dao
 * @Date 2019/6/14 0:12
 *****/
public interface TrucksMapper extends Mapper<Trucks> {
    @Select("select * from trucks where id in (select tid from comd_trucks where cid =#{cid})")
    public List<Trucks> findTrucksbyCid(int cid);

    @Select("select * from trucks where id=#{id}")
    public Trucks findTrucksbyId(long id);
}
